package android.com.willienter;

import android.app.Activity;
import android.com.willienter.listas.ListaFavoritos;
import android.com.willienter.separadores.SeparadorProcura;
import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.View.OnKeyListener;
import android.widget.ImageButton;

public class main extends Activity implements OnKeyListener, OnClickListener  {
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
      ImageButton wie = (ImageButton) findViewById(R.id.Bt_will_i_enter);
        wie.setOnClickListener(this);
           ImageButton alterar_dados = (ImageButton) findViewById(R.id.bt_alterar_dados);
        alterar_dados.setOnClickListener(this);
        
        ImageButton favoritos = (ImageButton) findViewById(R.id.ib_favoritos);
        favoritos.setOnClickListener(this);
        
        ImageButton database = (ImageButton) findViewById(R.id.ib_database);
        database.setOnClickListener(this);   	
    }
    
    
	 @Override 
	 public void onClick(View v) {
		switch(v.getId()){
			case R.id.Bt_will_i_enter:
				Intent myIntent = new Intent(v.getContext(), ResultadoWie.class);
				startActivity(myIntent);
				break;
			case R.id.bt_alterar_dados:
				Intent myIntent2 = new Intent(v.getContext(), alteraPerfil.class);
				startActivity(myIntent2);
				break;	
			case R.id.ib_favoritos:
				Intent myIntent3 = new Intent(v.getContext(), ListaFavoritos.class);
				startActivity(myIntent3);
				break;
			case R.id.ib_database:
				Intent myIntent4 = new Intent(v.getContext(), SeparadorProcura.class);
				startActivity(myIntent4);
				break;
		}
	}


	@Override
	public boolean onKey(View arg0, int arg1, KeyEvent arg2) {
		
		return false;
	}

}